package com.yonyou.ucf.mdf.app.isvdxq.utils;

public class LoggerThread implements Runnable {
    private String type;
    private String msg;
    private Object[] args;
    private String threadName;

    public LoggerThread(String type, String msg, Object[] args) {
        this.type = type;
        this.msg = msg;
        this.args = args;
        this.threadName = Thread.currentThread().getName();
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object[] getArgs() {
        return this.args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public String getThreadName() {
        return this.threadName;
    }

    public void setThreadName(String threadName) {
        this.threadName = threadName;
    }

    public void run() {
        MdfLog.logger(this.type, String.format(" - %s - %s", this.threadName, this.msg), this.args);
    }
}

